﻿using System;
using System.Collections.Generic;
using System.Text;

namespace AuthorizationCore
{
    /// <summary>
    /// 授权数据
    /// </summary>
    public class AuthorizedDataModel
    {
        public long Id { get; set; }

        /// <summary>
        /// 授权对象类型Id
        /// </summary>
        public long AuthorizedObjectTypeId { get; set; }

        /// <summary>
        /// 授权对象Id
        /// </summary>
        public long AuthorizedObjectId { get; set; }

        /// <summary>
        /// 请求类型
        /// </summary>
        public RequestType RequestType { get; set; }

        /// <summary>
        /// 根据请求类型确定具体含义
        /// </summary>
        public long RequestId { get; set; }

        /// <summary>
        /// 授权项Id
        /// </summary>
        public long AuthorizedItemId { get; set; }

        /// <summary>
        /// 授权状态
        /// </summary>
        public AuthorizedStatus AuthorizedStatus { get; set; }
    }
}
